package com.server.common.logistics.result;

import com.server.common.logistics.enums.TrackStatusEnum;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Getter
@Setter
public class GetTrackResult extends LogisticsResult {

    //运输天
    private Integer transitDay = 0;

    //停留天
    private Integer stayDay = 0;

    //抵达国家
    private String destinationCountry;

    //单号
    private String trackingNumber;

    //物流状态
    private TrackStatusEnum trackStatusEnum;

    private List<Tack> tackList = new ArrayList<>();

    @Getter
    @Setter
    public static class Tack implements Serializable {

        /**
         * 时间
         * @author LXC
         * @date 2022-07-19 16:56
         */
        private String time;

        /**
         * 位置
         * @author LXC
         * @date 2022-07-19 16:56
         */
        private String location;

        /**
         * 信息
         * @author LXC
         * @date 2022-07-19 16:56
         */
        private String content;

        /**
         * 状态代码
         * @author LXC
         * @date 2022-07-19 16:56
         */
        private String statusCode;


        /**
         * 状态名
         * @author LXC
         * @date 2022-07-19 16:56
         */
        private String statusName;

    }

}
